package happy.study.clique.module.study.design.single;

import happy.study.clique.module.study.design.single.code.SingleOne;
import happy.study.clique.module.study.design.single.code.SingleTwo;

/**
 * 单例模式
 *
 * @author fsq
 * @date 2021/11/11 17:12
 **/
public class RunMain {

    public static void main(String[] args) {

        // 懒汉式
        SingleOne singleOne = SingleOne.getSingleone();
        // 饿汉式
        SingleTwo singleTwo = SingleTwo.getSingleTwo();
    }
}
